﻿function Look(){
    var that = this;
    this._SYSTEM_NAME = "Dream资源管理系统";
    this._SITE_DOMAIN = window.location.href.split("ops")[0] + "ops"; //http://uc.dreamingame.net;//http://192.168.0.149:9140;//http://192.168.0.15/op
    this._USERAGENT = navigator.userAgent.toLowerCase();
    this._PAGER_SIZE = "20";
    this._TEMP = null;//临时全局变量，用于存储临时数据
    this._APP_INFO_DIC_ARRAY = new Array();//公共 -> 游戏应用信息字典
    this._CDN_INFO_DIC_ARRAY = new Array();//公共 -> CDN信息字典
    this._AGENT_DIC_ARRAY = new Array();//公共 -> 代理商名称字典
    this._I18N_RESOURCE_FOLD = "../json/i18n/";//国际化资源目录
}

var look = new Look();

Look.prototype._IM10003 = {//获取菜单
    url: look._SITE_DOMAIN + "/local/common/getMenu",
    getJson: function(){
        return 'appid=20068';
    }
}

Look.prototype._IM10022 = {//公共 -> 游戏应用信息字典
    url: look._SITE_DOMAIN + "/uc/commons/app_info",
    getJson: function(lang){
        return 'lang=' + lang;
    }
}

Look.prototype._IM20006 = {//公共 -> CDN信息字典
    url: look._SITE_DOMAIN + "/deploy/cdn_info"
}
Look.prototype._IM20008 = {//公共 -> 渠道信息字典
    url: look._SITE_DOMAIN + "/deploy/channel"
}

Look.prototype._IM20001 = {//资源管理系统 -> 资源管理 -> 查询资源库
    url: look._SITE_DOMAIN + "/deploy/reposity_list",
    getJson: function(appid){
        return 'appid=' + appid;
    }
}
Look.prototype._IM20002 = {//资源管理系统 -> 资源管理 -> 新建资源库
    url: look._SITE_DOMAIN + "/deploy/create_reposity",
    getJson: function(name, appid, device, cdns, svnUrl){
        return 'name=' + name + '&appid=' + appid + '&device=' + device + '&cdns=' + cdns + '&svnUrl=' + svnUrl;
    }
}
Look.prototype._IM20003 = {//资源管理系统 -> 资源管理 -> 删除资源库
    url: look._SITE_DOMAIN + "/deploy/delete_reposity",
    getJson: function(id){
        return 'id=' + id;
    }
}
Look.prototype._IM20004 = {//资源管理系统 -> 资源管理 -> 发布资源库
    url: look._SITE_DOMAIN + "/deploy/deploy_resource",
    getJson: function(repositoryId, publishRemark, agent){
        return 'id=' + repositoryId + '&message=' + publishRemark + '&channel=' + agent;
    }
}
Look.prototype._IM20005 = {//资源管理系统 -> 资源发布历史 -> 获取资源库历史
    url: look._SITE_DOMAIN + "/deploy/deploy_history",
    getJson: function(appid, library, channel, i){
        return 'appid=' + appid + '&reposityId=' + library + '&channel=' + channel + '&page=' + i + '&count=' + look._PAGER_SIZE * 2;
    }
}
Look.prototype._IM20009 = {//资源管理系统 -> 资源发布历史 -> 修改发布备注
    url: look._SITE_DOMAIN + "/deploy/update_deploy_history_message",
    getJson: function(id, message){
        return 'id=' + id + '&message=' + message;
    }
}
Look.prototype._IM20007 = {//资源管理系统 -> 资源发布历史 -> 对比历史记录
    url: look._SITE_DOMAIN + "/deploy/deploy_history_compare",
    getJson: function(id1, id2){
        return 'id1=' + id1 + '&id2=' + id2;
    }
}
Look.prototype._IM20010 = {//资源管理系统 -> 资源发布历史 -> 检测
    url: look._SITE_DOMAIN + "/deploy/check_url",
    getJson: function(id){
        return 'id=' + id;
    }
}
